<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改餐厅信息</title>
</head>
<body>
<form action="menu/updaterestaurant.do"  method="post" enctype="multipart/form-data">
<h1 align="center">修改餐厅信息</h1>
<c:forEach items="${rlist}" var="rl">
<table align="center">
     <tr><td><input type="hidden" name="RId" value=${rl.RId }></td></tr>         
	<tr><td>餐厅名称：</td><td><input type="text" name="RName" value="${rl.RName }"></td></tr>	
	<tr><td>餐厅地址：</td><td><input type="text" name="RAddress" value="${rl.RAddress }"></td></tr>         
	<tr><td>联系方式：</td><td><input type="text" name="RTel" value="${rl.RTel }"></td></tr>
	<tr><td><input type="submit" value="保存"/></td> <td><input type="button" value="取消" onclick="rback()"/></td></tr>
</table>
</c:forEach>
</form>
<script type="text/javascript">
function rback(){
	var cf=confirm("确定取消修改？");
	if(cf){window.location.href="menu/manrestaurant.do" }
}
</script>
</body>
</html>